package com.pocketsweet.model;

import com.avos.avoscloud.AVClassName;
import com.avos.avoscloud.AVFile;
import com.avos.avoscloud.AVObject;

@AVClassName("MLTopic")
public class MLTopic extends AVObject {
	public static String STATUS = "status";// 专题状态
	public static String PRIORITY = "priority";// 优先级
	public static String TYPE = "type";// 话题的类型
	public static String ADDRESS = "address";// 网址
	public static String TITLE = "title";// 专题名称
	public static String TITLE_IMG = "title_img";// 专题图片

	public MLTopic() {

	}

	// 专题状态
	public int getStatus() {
		return super.getInt(STATUS);
	}

	public void setStatus(int value) {
		super.put(STATUS, value);
	}

	// 优先级
	public int getPriority() {
		return super.getInt(PRIORITY);
	}

	public void setPriority(int value) {
		super.put(PRIORITY, value);
	}

	// 话题的类型
	public int getType() {
		return super.getInt(TYPE);
	}

	public void setType(int value) {
		super.put(TYPE, value);
	}

	// 网址
	public String getAddress() {
		return super.getString(ADDRESS);
	}

	public void setAddress(String value) {
		super.put(ADDRESS, value);
	}

	// 专题名称
	public String getTitle() {
		return super.getString(TITLE);
	}

	public void setTitle(String value) {
		super.put(TITLE, value);
	}

	// 专题标题图片
	public AVFile getTitleImg() {
		return super.getAVFile(TITLE_IMG);
	}

	public String getTitleImgUrl() {
		AVFile titleImg = getTitleImg();
		if (titleImg != null) {
			return titleImg.getUrl();
		} else {
			return null;
		}
	}

	public void setTitleImg(AVFile value) {
		super.put(TITLE_IMG, value);
	}
}
